﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ExcelJsonParser
{
    public partial class ABAPVariantNameInput : Form
    {
        public ABAPVariantNameInput()
        {
            InitializeComponent();
        }

        public string ABAPVariantName { get {return abapVarName.Text; } }
        public string MaxLineLength { get { return maxLength.Text; } }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.Close();
        }

        private void splitToLines_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.Yes;
            this.Close();
        }

        private void maxLength_KeyPress(object sender, KeyPressEventArgs e)
        {
            int num = 0;
            string keyChar = e.KeyChar.ToString();
            if (int.TryParse(keyChar, out num) == false && "\b".Equals(keyChar) == false)
            {
                e.Handled = true;
            }
        }
    }
}
